import url from '@/libs/url'
import Cookies from 'js-cookie'
const projectName = '/kingop-new-manager';
const pjUrl = inter => {
    return `${url}${projectName}${inter}?authoritydata=${Cookies.get('authoritydata')}`
}

//导出
export const url_repaire = pjUrl('/warningmanage/download');
export const url_check = pjUrl('/inspection/download');
export const url_bxrDc = pjUrl('/bankcustomer/exportExcel');
export const url_tempDc = pjUrl('/bankcustomer/exportExcel') + '&mark=1';
export const url_rep_records = pjUrl('/repairrecord/export');
export const url_ywrDc = pjUrl('/customermanage/export');
export const url_ywrTempDc = pjUrl('/customermanage/export') + '&mark=1';
export const url_InstTemp = pjUrl('/instmanage/exportModel');
export const url_equipList = pjUrl('/equip/export');
export const url_equipListTemp = pjUrl('/equip/export') + '&mark=1';
export const url_offypDc = pjUrl('/goodsClassification/download');
export const url_ceqlDc = pjUrl('/voucherGoods/download');
export const url_ofListDc = pjUrl('/commodity/export');
export const url_ofListTempDc = pjUrl('/commodity/export') + '&mark=1';
export const url_pzListDc = pjUrl('/voucher/export');
export const url_pzListTempDc = pjUrl('/voucher/export') + '&mark=1';


//导入
export const dr_url_inst = pjUrl('/instmanage/uploadFile');
export const dr_url_bxr = pjUrl('/bankcustomer/uploadFile');
export const dr_url_ywr = pjUrl('/bankcustomer/uploadFile');
export const dr_url_sblb = pjUrl('/equip/uploadFile');
export const dr_url_bgyplb = pjUrl('/commodity/uploadFile');
export const dr_url_pzlb = pjUrl('/voucher/uploadFile');
export const dpwnLoadHref = pjUrl('/equip/equipsSave');
export const downQr = pjUrl('/equip/exportRcode');